<?php

use app\http\api\controller\Analysis;
use app\http\api\controller\Merchant;
use app\http\api\controller\Order;
use app\http\api\controller\Pos;
use app\http\api\controller\Product;
use Webman\Route;

// 需要中间件
Route::group('/api', function () {
    Route::post('/order/index', [Order::class, 'index']);
    Route::post('/merchant/index', [Merchant::class, 'index']);
    Route::post('/product/index', [Product::class, 'index']);
    Route::post('/pos/index', [Pos::class, 'index']);
    Route::post('/analysis/index', [Analysis::class, 'index']);
});